//
//  NSDate+ZCExtension.m
//  ZCBaiSi
//
//  Created by zc on 2016/10/26.
//  Copyright © 2016年 zc. All rights reserved.
//

#import "NSDate+ZCExtension.h"

@implementation NSDate (ZCExtension)
- (BOOL)isThisYear{
    NSDate *selfDate = self;
    NSDate *nowDate = [NSDate date];
    NSCalendar *calendar = [NSCalendar calendar];
    return [calendar component:NSCalendarUnitYear fromDate:selfDate] ==  [calendar component:NSCalendarUnitYear fromDate:nowDate];
}
@end
